package com.qigao.mall.api;

import com.github.pagehelper.Page;
import com.qigao.mall.commons.dto.*;
import com.qigao.mall.commons.enums.Result;

import java.util.List;

/**
 * @author luiz
 * @Title: com.qigao.mall.api
 * @ProjectName market-parent
 * @date 2020-06-2020-06-18 15:12
 * @Description:
 */
public interface BillItemService {
    Result<String> create(TbBillItemCreateDto sysBillItemCreateDto);

    Result<String> delete(String id);

    Result<String> update(TbBillItemModiDto tbBillItemModiDto);

    Page<TbBillItemResultDto> listPage(TbBillItemCondDto tbBillItemCondDto);

    Result<List<TbBillOwnerResultDto>> findByItemCode(String itemCode);

    Result<String> save(TbBillOwnerUpdateDto tbBillOwnerUpdateDto);

    Result<List<TbBillOwnerResultDto>> findEnableList();

    Result calBenefitByProd(Integer userType,String userLevel, String prodSaleAmtStr);

    List<TbBillItemResultDto> listAll(TbBillItemCondDto tbBillItemCondDto);
}
